using System.Collections.Generic;

namespace Framework
{
    public class TokenParameters : Dictionary<string, string>
    {
        public TokenParameters() : base(FrameworkConstant.DEFAULT_COMPARER_IGNORECASE)
        {
        }

        #region Get
        public string Get(string key)
        {
            return Get(key, string.Empty);
        }

        public string Get(string key, string defaultValue)
        {
            return ContainsKey(key) ? this[key] : defaultValue;
        }
        #endregion
    }
}